package org.example.springboot3.mapper;

import org.apache.ibatis.annotations.Select;
import org.example.springboot3.entity.Admin;

import java.util.List;

public interface AdminMapper {
    List<Admin> selectAll( Admin admin);

    @Select("select * from `admin` where id = #{id}")
    Admin selectById(Integer id);

    void insert(Admin admin);

    void updataById(Admin admin);

    //@Delete("delete from `admin` where id = #{id}")
    void deleteById(Integer id);

    @Select("select * from `admin` where username = #{username}")
    Admin selectByUsername(String username);
}
